using Cysharp.Threading.Tasks;
using LFloatMath.Math;

namespace IQIGame.Onigao.GamePlay
{
    public class TotemView : UnitView
    {
        public UnitView summoner;
        
        public override UniTask InitializeView()
        {
            this.GetComponent<TotemViewComponent>(ETComponentType.TotemViewComponent).InitializeView();
            
            this.disposed = false;
            return UniTask.CompletedTask;
        }

        #region Formula Func

        public override AttributeProperty GetAttr()
        {
            return this.summoner.GetAttr();
        }
        
        public override T GetCustomProperty<T>(ECustomProperty propertyType)
        {
            return this.summoner.GetCustomProperty<T>(propertyType);
        }

        public override LVector2 GetPos() => this.pos;

        #endregion
    }
}